package cn.tedu.boot08.mapper;


import cn.tedu.boot08.entity.Product;

import java.util.List;

public interface ProductMapper {

    void insert(Product product);
    List<Product> select();
    void deleteById(int id);
    void update(Product product);
    Product selectById(int id);
    //批量删除
    void deleteByIds1(Integer[] ids);
    // mapper.deleteByIds(1,2,3,4)
    void deleteByIds2(Integer... ids);
    void deleteByIds3(List<Integer> ids);


    void dynamicUpdate(Product p);

    int selectCount();
}
